// // Dom7
var $$ = Dom7;

// Framework7 App main instance
var app = new Framework7({
    root: '#app', // App root element
    id: 'io.framework7.testapp', // App bundle ID
    name: 'Framework7', // App name
    theme: 'ios', // Automatic theme detection
    // Enable swipe panel
    panel: {
        swipe: 'left',
    },
    view: {
        stackPages: true, // 多级页面缓存
        pushState: true, // 开启 url 根据路由 hash 变化
    },

    // App root data
    data: function() {},

});

// Initialize View          
var mainView = app.addView('.view-main')

// Load page from about.html file to main View:
mainView.router.loadPage('about.html');

// // Init/Create main view
// var mainView = app.views.create('.view-main', {
//     url: '/'
// });